<div class="silk-cms-pagination" tal:content="structure php:this.pagination(types)"></div>

<table class="silk-cms-list">

    <thead>
	<tr>
	    <th i18n:translate="string:id">id</th>
	    <th i18n:translate="string:name">name</th>
	    <th i18n:translate="string:description">description</th>
	    <th i18n:translate="string:version">version</th>
	    <th i18n:translate="string:actions" class="silk-cms-row-actions">actions</th>
	</tr>
    </thead>


    <tbody>
	<tr tal:repeat="type types" tal:attributes="class php:this.altClass('odd', 'even', repeat.type.index)">

	    <td><tal:block tal:content="type/type_id|default">&nbsp;</tal:block></td>
	    <td><tal:block tal:content="type/name|default">&nbsp;</tal:block></td>
	    <td><tal:block tal:content="php:truncate(type.description, 50)">&nbsp;</tal:block></td>
	    <td><tal:block tal:content="type/version|default">&nbsp;</tal:block></td>

	    <td class="silk-cms-row-actions">
		<ul>
		    <li tal:condition="type/virtual"><a tal:attributes="href php:this.link('type_edit', array('type_id' => type.type_id))" i18n:translate="string:Edit"/> | </li>
		    <li tal:condition="type/virtual"><a tal:attributes="href php:this.link('type_delete', array('type_id' => type.type_id))" i18n:translate="string:Delete"/></li>
		</ul>
	    </td>
	</tr>
    </tbody>

</table>

<div class="silk-cms-pagination" tal:content="structure php:this.pagination(types)"></div>